Method for measuring the available bandwidths of a link and a network

ABSTRACT

The present invention provides a method for measuring the available bandwidth of a link and a method for measuring the available bandwidth of a network. By sending quartets in pair and measuring intervals of probe packets at the probe receiving end, the available bandwidth of any link in a network can be measured and the characteristics of load changes in a given link can be tracked and analyzed. Or, the available bandwidths of a network within given sources and destinations can be measured and the input/output bandwidth of the network or the changes in cross traffic can be found out. The present invention can be applied to trouble shooting in links and networks, capacity planning, QoS (Quality of Service) control or QoS service level agreement verification, load balancing, re-route and detection and mitigation of network attacks and in many other fields. It can also be used for measuring the available bandwidth of a path even if there is more than one link of the minimum capacity on the path or when the link of the minimum capacity is not the link of the minimum available bandwidth.

BACKGROUND OF THE INVENTION

The present invention relates to the field of network measurement technology and more particularly pertains to a method for measuring the available bandwidths of a link and a network.

Existing network measurement technology only provides methods for measuring the available bandwidth of a network path. The prior art does not provide any methods for measuring the available bandwidths of a link and a network.

BRIEF SUMMARY OF THE INVENTION

In view of the aforesaid disadvantages now present in the prior art, the object of the present invention is to provide a method for measuring the available bandwidths of links and networks.

To attain the object, the present invention adopts the following technical proposal:

A method for measuring the available bandwidth of a link comprising sending a series of probe packets from a probe sending end and receiving the probe packets by a probe receiving end to measure the available bandwidth A_(k) of any link L_(k) in a network; each eight probe packets form a group and each group is composed of a pair of quartets; each quartet is composed of four probe packets which are sent back-to-back as denoted by p, m, q, m in accordance with their sending sequence with their packet sizes as denoted by s(p), s(m), s(q) and s(m) in bits correspondingly; the probe packets m are denoted by m₁, m₂, m₃ and m₄ in accordance with the sending sequence of the eight probe packets of the group; the arrival times of m₁, m₂, m₃, m₄ as denoted by t(m₁), t(m₂), t(m₃), t(m₄) are measured at the probe receiving end; and the mean values of their arrival time intervals as denoted by Δ₁=E{t(m₂)−t(m₁)}, Δ₂=E{t(m₃)−t(m₂)}, Δ₃=E{t(m₄)−t(m₃)} are calculated; the available bandwidth A_(k) of the link L_(k) is then estimated according to the following equation:

${{\hat{A}}_{k} = {C_{k} - \frac{{\Delta_{3}C_{k}} - \left( {{s(q)} + {s(m)}} \right)}{\Delta_{1}}}},$

wherein C_(k) is a given link capacity.

The time interval T between any two consecutive quartets sent takes a value sufficiently large to provide a lower probability for the two quartets to have packets to appear concurrently in the same router before they reach the measured link L_(k).

The probe packet m takes the TTL (Time-To-Live) value of 255; when the link to-be-measured is the k^(th) link from the probe sending end, the probe packets p and q of the quartet sent earlier take the TTL values of k−1 and the probe packets p and q of the quartet subsequently sent take the TTL values of k.

The values of s(p), s(q), s(m) have to satisfy a back-to-back condition, namely, given that the link capacities from the probe sending end to the link to-be-measured are in sequence of C₁, C₂, . . . , C_(k); calculate C_(i) ₁ =min{C₁, C₂, . . . , C_(k)}, C_(i) ₂ min{C_(i) ₁ ₊₁, . . . , C_(k)}, . . . , C_(i) _(j) =min{C_(i) _(j−1) ₊₁, . . . , C_(k)}=C_(k); then calculate

${\alpha = {\max \left\{ {\frac{C_{i_{1}}}{C_{k}},\frac{C_{i_{2}}}{C_{i_{1}}},\frac{C_{i_{3}}}{C_{i_{2}}},\ldots \mspace{14mu},\frac{C_{i_{j}}}{C_{i_{j - 1}}}} \right\}}};$

then obtaining the following equations for the back-to-back condition:

${\frac{s(p)}{s(m)} \geq \alpha},{\frac{{s(p)} + {s(m)}}{{s(m)} + {s(q)}} \geq \alpha},{\frac{{s(p)} + {s(m)} + {s(q)}}{{s(q)} + {2{s(m)}}} \geq \alpha},$

wherein the default value of α is α=10.

In the present invention, s(p) takes a value which is the maximum transmission unit (MTU) of the path, s(m) takes a value which is the minimum transmission unit of the path, and specifically on the path of Ethernet link s(p)=1518 Byte, s(m)=64 Byte, s(q) takes a value according to the following equation:

${s(q)} \leq {\min {\left\{ {{\frac{{s(p)} + {s(m)}}{\alpha} - {s(m)}},\frac{{s(p)} + {\left( {1 - {2\alpha}} \right){s(m)}}}{\alpha - 1}} \right\}.}}$

By means of measuring the available bandwidths of all links in a network to-be-measured, the present invention can be applied for measuring the available bandwidth of the network to-be-measured; or by means of measuring the total available bandwidths of all links in the minimum capacity cut-set or the minimum available bandwidth cut-set of the network to-be-measured, the present invention can be applied to determine the upper bound of the available bandwidth of the network to-be-measured; and when the network to-be-measured is a path, the method for measuring the available bandwidth of a network is simplified as a method for measuring the available bandwidth of a path.

The advantages of the invention are: By means of measuring the available bandwidth of any given link in a network, it can accurately track and analyze the characteristics of load changes in the given link. By measuring the available bandwidths of a network with given sources and destinations, it can find out the input/output bandwidth of the network or the changes in cross traffic that is traversing across the input/output bottleneck of the network but is not originating from the given sources and destining to the given destinations. Therefore, the present invention can be applied to trouble shooting in links and networks, capacity planning, QoS (Quality of Service) control or QoS service level agreement (SLA) verification, load balancing, re-route and detection and mitigation of network attacks and in many other fields. The present invention can also be used for measuring the available bandwidth of a path and its measurement accuracy is higher than those of the classical methods for measuring the available bandwidth of a path. In particular, when the classical methods for measuring the available bandwidth of a path are not applicable in the circumstances, that is, when there is more than one link of the minimum capacity on the path or when the link of the minimum capacity is not the link of the minimum available bandwidth, the present invention can still attain low measurement errors.

The present invention can also be used for measuring the link capacity C_(k) or both the link capacity and the link available bandwidth.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of the system architecture of the present invention.

FIG. 2 is a schematic diagram showing a quartet composed of four probe packets.

FIG. 3 is a schematic diagram showing a pair of quartets.

FIG. 4 is a schematic diagram showing the time correlation when a pair of quartets departs from links L_(k−1) and L_(k).

FIG. 5 is a schematic diagram showing a measurement method with a group of n quartets.

DETAILED DESCRIPTION OF THE INVENTION

The preferred embodiment of the present invention is further described in detail with the following embodiment and the accompanying drawings.

FIG. 1 is a diagram of the system architecture illustrating the method for measuring the available bandwidth of a link. It is used for measuring the available bandwidth of any link in a network as well as its capacity and utilization rate, or for measuring the available bandwidth of a path, or for measuring the available bandwidth of a network. In this embodiment, a series of quartets is sent out in pair from the probe sending end within a given time period. When each quartet passes through each individual link L₁, L₂, . . . , L_(n) and each individual router R₁, R₂, . . . , R_(n−1), time delays are caused and time intervals between probe packets are changed, wherein the transmission time delays are determined by the capacity of each link C₁, C₂, . . . , C_(n), the queuing time delays are determined by the background traffic passing through each link. The probe receiving end conducts statistical analyses of time intervals between probe packets and estimates the available bandwidth with respect to a link or a path or a network to-be-measured.

The time required for each measurement by the system may vary depending on the requirements for accuracy. However, the longest time cannot exceed the stability time of traffic in a network such as several tens of minutes; the shortest cannot be less than the time for collecting enough number of samples as required for measurement of accuracy. Experiments demonstrate that several seconds of statistical measurement time can speedily and roughly estimate the available bandwidth; ten seconds or more of statistical measurement time can have results close to the accuracy level of the typical prior art; several tens of seconds of statistical measurement time can attain a very good comprehensive effect on measurement accuracy, measurement consistency, measurement loading and so forth. In general, longer statistical measurement time cannot obviously improve the measurement effect.

In a statistical measurement time period, a series of probe quartets is sent out in group from a probe sending end. Each group is composed of two or more quartets according to a given method. The time interval T between any two consecutive quartets (that is, the time interval between the last byte of each quartet) has to take a sufficiently large value, that is, greater than the queuing time delay on a measured path, so as to ensure the last probe packet of the first quartet and the first probe packet of the successive quartet do not appear concurrently in the same router on a path. However, for the pair of quartets to reveal the same state of network load changes and to increase the accuracy level of the measurement, the value of T is not preferred to be excessively great. For example, let T be 10 times greater than the transmission time of a quartet, and when the bottleneck link on the path is 10 Mbps and the total bytes of a quartet is 3100 Byte, T≈24 ms.

The quartet which is composed of four probe packets is a basic unit employed in the method for measuring the available bandwidth of the present invention. It is sent from the sending end in a back-to-back mode and its construction is shown in FIG. 2. In this embodiment, s(p) takes a value as great as possible such as on the path of Ethernet link s(p)=1518 Byte, s(m) takes a value as small as possible such as on the path of Ethernet link s(m)=64 Byte; and given the values of s(p) and s(m), s(q) takes a value that can satisfy the back-to-back condition. p and q take smaller TTL values so that they can be discarded in a given router whereas m takes a TTL value as great as possible such as 255 so that m can carry interval information to a probe receiving end.

I. Method for Measuring the Available Bandwidth of a Link:

In measuring a given link, every two quartets form one pair and the construction of each pair is shown in FIG. 3. In this embodiment, let the link to-be-measured L_(k) be the k^(th) link from the probe sending end; p and q of the quartet sent earlier take the TTL values of k−1 and p and q of the quartet subsequently sent take the TTL values of k. FIG. 4 shows the time correlation when the pair of quartets departs from links L_(k−1) and L_(k).

To satisfy the condition that when there is no background traffic on the path, all the probe packets in the quartet subsequently sent continue to be in a back-to-back mode when departing from the link to-be-measured L_(k), the packet sizes of the probe packets in the quartet have to satisfy the following back-to-back condition: Given that the link capacities from the probe sending end to the link to-be-measured are in sequence of C₁, C₂, . . . , C_(k);

-   (1) Calculate the minimum capacity C_(i) ₁ =min{C₁, C₂, . . . ,     C_(k)}, C_(i) ₂ =min{C_(i) ₁ ₊₁, C_(k)}, . . . , C_(i) _(j)     =min{C_(i) _(j−1) ₊₁, . . . , C_(k)}=C_(k); -   (2) Calculate the back-to-back factor

${\alpha = {\max \left\{ {\frac{C_{i_{1}}}{C_{k}},\frac{C_{i_{2}}}{C_{i_{1}}},\frac{C_{i_{3}}}{C_{i_{2}}},\ldots \mspace{14mu},\frac{C_{i_{j}}}{C_{i_{j - 1}}}} \right\}}};$

-   (3) Wherein s(p) and s(m) are given, calculate according to the     following equation the back-to-back condition which s(q) has to     satisfy:

${s(q)} \leq {\min {\left\{ {{\frac{{s(p)} + {s(m)}}{\alpha} - {s(m)}},\frac{{s(p)} + {\left( {1 - {2\alpha}} \right){s(m)}}}{\alpha - 1}} \right\}.}}$

In order to allow more background traffic to be injected in between the probe packets so as to obtain background traffic information, s(q) takes a value as great as possible, that is, the largest value s(q)_(max) as derived from the above equation. However, in order to allow the probe packet q to keep following its leading probe packet p properly despite the influence of the background traffic, s(q) takes a value as small as possible. For example, let s(q)=0.8 s(q)_(max) and it can be expected to have better measurement effect. When s(p)=1518B, s(m)=64B, the correlation between the value of s(q)_(max) (after considering the smallest packet size) and the back-to-back factor α is set out as below:

α 1 2 3 4 5 6 7 8 9 10 11 12 s(q)_(max) 1518B 727B 463B 331B 235B 162B 114B 79B 64B 64B 64B 64B

When the value of α is unknown, according to the existing Internet technology it can be selected as α=10 so as to satisfy the requirement of measuring the available bandwidth of the link from 10 Mbps edge router to 100 Mbps core router, or from 100 Mbps router to 1 Gbps router, or from 1 Gbps router to 10 Gbps router. The arrival time t(m₁), t(m₂), t(m₃), t(m₄) of m₁, m₂, m₃, m₄ is measured at the probe receiving end; and the mean values of their inter-arrival times are statistically calculated as: Δ₁=E{t(m₂)−t(m₁)}, Δ₂=E{t(m₃)−t(m₂)}, Δ₃=E{t(m₄)−t(m₃)}; then, by making use of the time correlation as shown in FIG. 4, the following equation is used to estimate the utilization rate u_(k) and the available bandwidth A_(k) of the link:

${{\hat{u}}_{k} = \frac{\Delta_{3} - {\left( {{s(q)} + {s(m)}} \right)/C_{k}}}{\Delta_{1}}},{{\hat{A}}_{k} = {\left( {1 - {\hat{u}}_{k}} \right)C_{k}}}$

wherein C_(k) is known.

II. Method for Measuring the Link Capacity:

When C_(k) is unknown, it can be estimated by adopting the method of the present invention according to the following equation:

${\hat{C}}_{k} = {\frac{s(p)}{\Delta_{2} + \Delta_{1} - T + {{s(m)}/C_{k - 1}}} \approx {\frac{s(p)}{\Delta_{2} + \Delta_{1} - T}\left( {1 - {\frac{s(m)}{s(q)}\alpha}} \right)}}$

It can also be estimated by adopting the method of the present invention where T and s(m) are kept constant, and by varying the packet size of the probe packet p, that is, the value of s(p), and then making use of the equation

${\frac{s(p)}{C_{k}} = {\Delta_{2} + \Delta_{1} - T + \frac{s(m)}{C_{k - 1}}}},$

it can accurately estimate the link capacity C_(k), wherein

${- T} + \frac{s(m)}{C_{k - 1}}$

is a value which does not relate to s(p), and thus

${\hat{C}}_{k} = {\frac{\left\lbrack {s(p)} \right\rbrack}{\left\lbrack {\Delta_{2} + \Delta_{1}} \right\rbrack}.}$

III. Method for Measuring the Available Bandwidth of a Path:

When measuring a given path and if the path contains n links, then take n quartets in sequence as a measurement group, and its construction is shown in FIG. 5. The probe packets p and q of each quartet in the measurement group take the TTL values in accordance with the sending sequence, namely, 1, 2, . . . , n. s(q) takes a value which has to satisfy the back-to-back condition when

$\alpha = {\max {\left\{ {\frac{C_{2}}{C_{1}},\frac{C_{3}}{C_{2}},\ldots \mspace{14mu},\frac{C_{n}}{C_{n - 1}}} \right\}.}}$

The probe receiving end conducts statistical analyses of the inter-arrival times of all neighboring probe packets to obtain the mean values, and estimates the available bandwidth of each link A_(k) by applying the equation for calculating the available bandwidth of a link; and finally obtains the estimate value of the available bandwidth of a path A_(path):

${\hat{A}}_{path} = {\min\limits_{1 \leq k \leq n}{{\hat{A}}_{k}.}}$

After determining the value of one or more links of the minimum available bandwidth on the path, one can apply the method for measuring the available bandwidth of a link to track and measure only these links so as to reduce the measuring costs.

IV. Method for Measuring the Available Bandwidth of a Network:

For a network to-be-measured with given one or more sources and destinations, it is first to determine the number of paths so as to include all its links. Next, apply the method for measuring the available bandwidth of a path to measure each path so as to determine the available bandwidths of all links of each path. Finally, take the max-flow min-cut algorithm to determine the available bandwidth of the network to-be-measured.

With a view to reducing the measuring costs, the following method can be applied to estimate the upper bound of the available bandwidth of a network:

-   (1) First make use of the max-flow min-cut algorithm to determine     all the minimum capacity cut-sets of the network to-be-measured, or     after measuring the available bandwidths of all links in the network     to-be-measured, determine the minimum available bandwidth cut-sets     of the network to-be-measured; -   (2) For all links of all the minimum cut-sets, apply the method for     measuring the available bandwidth of a link to measure their     available bandwidths individually; -   (3) Take the sum of the available bandwidths of all links of each     minimum cut-set as the available bandwidth of that cut-set; and -   (4) Take the minimum value of the available bandwidths of all     cut-sets as the estimate of the upper bound value of the available     bandwidth of the network to-be-measured. 

1. A method for measuring the available bandwidth of a link comprising: sending a series of probe packets to measure the available bandwidth A_(k) of any link L_(k) in a network; each eight probe packets form a group and each group is composed of a pair of quartets; each quartet is composed of four back-to-back probe packets p, m, q, m and their packet sizes are s(p), s(m), s(q) and s(m) correspondingly; the probe packets m are denoted by m₁, m₂, m₃ and m₄ in accordance with the sending sequence of the eight probe packets of the group; at the probe sending end the time intervals of sending the quartets in the series are greater than the queuing time delays on the measured path, thereby enabling that any two packets of any two consecutive quartets shall not concurrently appear on the same router; the four probe packets in each of the quartets are sent back-to-back; the probe packet m takes the TTL value of 255; when the link to-be-measured is the k^(th) link from the probe sending end, p and q of the quartet sent earlier take the TTL values of k−1 and p and q of the quartet subsequently sent take the TTL values of k.
 2. The method for measuring the available bandwidth of a link as in claim 1, wherein the arrival times of m₁, m₂, m₃, m₄ as denoted by t(m₁), t(m₂), t(m₃), t(m₄) are measured at the probe receiving end; and the mean values of their arrival time intervals as denoted by Δ₁=E{t(m₂)−t(m₁)}, Δ₂=E{t(m₃)−t(m₂)}, Δ₃=E{t(m₄)−t(m₃)} are calculated; the available bandwidth A_(k) of the link L_(k) is then estimated according to the following equation: ${{\hat{A}}_{k} = {C_{k} - \frac{{\Delta_{3}C_{k}} - \left( {{s(q)} + {s(m)}} \right)}{\Delta_{1}}}},$ wherein C_(k) is a given link capacity.
 3. The method for measuring the available bandwidth of a link as in claim 2, wherein the values of s(p), s(q), s(m) have to satisfy a back-to-back condition, namely, given that the link capacities from the probe sending end to the link to-be-measured are in sequence of C₁, C₂, . . . , C_(k); calculate C_(i) ₁ =min{C₁, C₂, . . . , C_(k)}, C_(i) ₂ =min{C_(i) ₁ ₊₁, . . . , C_(k)}, . . . , C_(i) _(j) =min{C_(i) _(j−1) ₊₁, . . . , C_(k)}=C_(k); then calculate ${{\alpha = {\max \left\{ {\frac{C_{i_{1}}}{C_{k}},\frac{C_{i_{2}}}{C_{i_{1}}},\frac{C_{i_{3}}}{C_{i_{2}}},\ldots \mspace{14mu},\frac{C_{i_{j}}}{C_{i_{j - 1}}}} \right\}}};};$ then obtaining the following equations for the back-to-back condition: ${:{\frac{s(p)}{s(m)} \geq \alpha}},{\frac{{s(p)} + {s(m)}}{{s(m)} + {s(q)}} \geq \alpha},{\frac{{s(p)} + {s(m)} + {s(q)}}{{s(q)} + {2{s(m)}}} \geq \alpha},$ wherein the default value of α is α=10.
 4. The method for measuring the available bandwidth of a link as in claim 3, wherein s(p) takes a value which is the maximum transmission unit (MTU) of the path, s(m) takes a value which is the minimum transmission unit of the path, s(q) takes a value according to the following equation: ${s(q)} \leq {\min {\left\{ {{\frac{{s(p)} + {s(m)}}{\alpha} - {s(m)}},\frac{{s(p)} + {\left( {1 - {2\alpha}} \right){s(m)}}}{\alpha - 1}} \right\}.}}$
 5. A method for measuring the available bandwidth of a network, wherein by means of measuring the total available bandwidths of all links in the minimum capacity cut-set or the minimum available bandwidth cut-set of the network to-be-measured, the available bandwidth of the network is determined. 